package com.ruoyi.common.domain.business;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * 收货地址对象 user_address
 *
 * @author Song
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_address")
@ApiModel(description = "收货地址")
public class UserAddress extends BaseEntity implements Serializable{
private static final long serialVersionUID = 1L;

    /** 主键id */
        @TableId(value = "id" ,type = IdType.AUTO)
        @ApiModelProperty(name = "${comment}")
        private Long id;
    /** 收货人 */
            @Excel(name = "收货人")
        @ApiModelProperty(name = "收货人")
        private String name;
    /** 联系电话 */
            @Excel(name = "联系电话")
        @ApiModelProperty(name = "联系电话")
        private String phone;
    /** 省id */
            @Excel(name = "省id")
        @ApiModelProperty(name = "省id")
        private Long provinceId;
    /** 市id */
            @Excel(name = "市id")
        @ApiModelProperty(name = "市id")
        private Long cityId;
    /** 区id */
            @Excel(name = "区id")
        @ApiModelProperty(name = "区id")
        private Long regionId;
    /** 详细地址 */
            @Excel(name = "详细地址")
        @ApiModelProperty(name = "详细地址")
        private String detail;
    /** 是否默认 */
            @Excel(name = "是否默认")
        @ApiModelProperty(name = "是否默认")
        private Long isDefault;
    /** 用户id */
            @Excel(name = "用户id")
        @ApiModelProperty(name = "用户id")
        private Long userId;
    /** 逻辑删除(0表示未删除，1表示软删除) */
        @TableLogic
        @ApiModelProperty(name = "逻辑删除(0表示未删除，1表示软删除)")
        private Long isDelete;
}
